/*********************************************************************
	Name: spi_osc.h
	Description: 	Set up oscillators
			
	Author: Andrew Nicholas
	Date: 9/08/2011
*********************************************************************/
#ifndef SPI_OSC_H_
#define SPI_OSC_H_

#include "type.h"
#include <p30f3013.h>

/*****************************************************************************
** Function name:		spi_init
**
** Descriptions:		Initalise SPI Port for Oscillators
**
** parameters:		None
** Returned value:		None
**
*****************************************************************************/
 void spi_init();
 
/*****************************************************************************
** Function name:		spi_set_osc1
**
** Descriptions:		Program Oscillator 1 to frequency (kHz)
**
** parameters:			freq - frequency of oscillator
** Returned value:		None
**
*****************************************************************************/
 void spi_set_osc1();
 
 /*****************************************************************************
** Function name:		spi_set_osc2
**
** Descriptions:		Program Oscillator 2 to frequency (kHz)
**
** parameters:			freq - frequency of oscillator
** Returned value:		None
**
*****************************************************************************/
 void spi_set_osc2();

 /*****************************************************************************
** Function name:		spi_close
**
** Descriptions:		Program Oscillator 2 to frequency (kHz)
**
** parameters:			freq - frequency of oscillator
** Returned value:		None
**
*****************************************************************************/
 void spi_close();
 
 #endif /* SPI_OSC */
